package club.hicode.daydayup.rpc;

import com.github.sd4324530.jtuple.Tuple2;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 服务注册中心
 * @author Liu Chunfu
 * @date 2018-08-31 下午3:26
 **/
public class MicRegister {

	private static Map<String, Tuple2<String, Integer>> map = new ConcurrentHashMap<>();

	static {
		map.put("first-app", Tuple2.with("localhost", 29201));
	}

	public static Tuple2<String, Integer> target(String appName) {
		return map.get(appName);
	}
}
